#include "mainwindow.h"
#include <QApplication>
#include <QColorDialog>
#include <QDebug>
#include <QFontDialog>
#include <QFileDialog>
#include <QInputDialog>
#include <QMessageBox>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    /*
    MainWindow w;
    w.show();

    QColor color = QColorDialog::getColor();
    qDebug() << color;

    bool ok;
    qDebug() << "ok : " << ok;
    QFont font = QFontDialog::getFont(&ok);
    qDebug() << font << ok;

    QString fileName = QFileDialog::getOpenFileName();
    qDebug() << fileName;

    QStringList fileNames = QFileDialog::getOpenFileNames();
    qDebug() << fileNames;
    */

    /*
    QString str = QInputDialog::getText(0, "text", "请输入你名字：");
    qDebug() << str;

    int n = QInputDialog::getInt(0, "int", "请输入你的年龄：");
    qDebug() << n;

    double d = QInputDialog::getDouble(0, "double", "请输入你的分数：");
    qDebug() << d;

    QStringList list;
    list << "家里蹲" << "北京" << "大理" << "泰国";
    QString pos = QInputDialog::getItem(0, "item", "请选择你想去的地方：", list);
    qDebug() << pos;
    */

    QMessageBox::question(0, "question", "你饿了么？");
    QMessageBox::information(0, "information", "降温了，记得添衣服");
    QMessageBox::warning(0, "warnning", "路面很湿，小心滑倒");
    QMessageBox::critical(0, "critical", "程序崩溃了");
    QMessageBox::about(0, "about", "Qt是一个全面的编程框架库");

    return a.exec();
}
